a = eval(input())
b = eval(input())
c = eval(input())
if a == 0:
    if b == 0:
        print("Data error!")
    else:
        sum = -(c/b)
        print(f"这个方程有一个解,这个解是{sum}")
else:
    if b**2-4*a*c > 0:
        sum1 = (-b+(b**2-4*a*c)**(1/2))/(2*a)
        sum2 = (-b-(b**2-4*a*c)**(1/2))/(2*a)
        if sum1 > sum2:
            print(f"函数有两个解,这两个解分别是{sum1},{sum2}")
        else:
            print(f"函数有两个解,这两个解分别是{sum2},{sum1}")
    elif b**2-4*a*c == 0:
        sum = (-b + (b ** 2 - 4 * a * c) ** (1 / 2)) / (2 * a)
        print(f"方程有一个解，方程的解是{sum}")
    else:
        print("这个方程无解")